package com.atguigu.array;


import org.junit.Test;


public class ArrayTest {

    @Test
    public void test1(){
        Array<Integer>array = new Array<Integer>(4);
        array.addLast(12);
        array.addLast(90);
        array.addLast(67);
        array.addLast(78);
        System.out.println(array);
        array.add(1,100);
        System.out.println(array);
        //[12,100,90,67,78]
        array.removeElement(100);
        System.out.println(array);//[12,90,67,78]
        array.remove(1);
        System.out.println(array);//[12,67,78]

    }

}
